package com.hx.pojo;

public class Emp {
    //属性
    private Integer eno;
    private String ename;
    private Dept dept;//多对一
    //方法
    public void m1(){
        System.out.println("员工周一周五正常上班，周六休息！");
    }

    public Integer getEno() {
        return eno;
    }

    @Override
    public String toString() {
        return "Emp{" +
                "eno=" + eno +
                ", ename='" + ename + '\'' +
                ", dept=" + dept +
                '}';
    }

    public void setEno(Integer eno) {
        this.eno = eno;
    }

    public String getEname() {
        return ename;
    }

    public void setEname(String ename) {
        this.ename = ename;
    }

    public Dept getDept() {
        return dept;
    }

    public void setDept(Dept dept) {
        this.dept = dept;
    }
}
